package com.github.permissiondog.cancanpbackend.dao;

import com.github.permissiondog.cancanpbackend.model.TableQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TableQuestionDao {
    void createTable();
    TableQuestion getQuestionById(int id);
    List<TableQuestion> getQuestionsGreaterThan(@Param("templateId") int templateId, @Param("questionNumber") int questionNumber);
    List<TableQuestion> getQuestionByTemplateId(int templateId);

    void insertQuestion(TableQuestion q);
    void updateQuestion(TableQuestion q);
    int deleteQuestion(int id);
}
